// import React from "react";
import { Swiper } from "antd-mobile";

function Sw() {
  // const colors = ["#ace0ff", "#bcffbd", "#e4fabd", "#ffcfac"];
  // const items = colors.map((color, index) => (
  //   <Swiper.Item key={index}></Swiper.Item>
  // ));
  return (
    <div>
      <Swiper autoplay="true" loop="true">
        <Swiper.Item>
          <img
            src="https://img2.baidu.com/it/u=307697610,3576076797&fm=253&fmt=auto&app=138&f=JPEG?w=1134&h=500"
            alt=""
          />
        </Swiper.Item>
        <Swiper.Item>
          <img
            src="https://pic.ntimg.cn/file/20190627/4058904_182427564081_2.jpg"
            alt=""
          />
        </Swiper.Item>
        <Swiper.Item>
          <img
            src="https://img0.baidu.com/it/u=3460753691,2163591032&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=382"
            alt=""
          />
        </Swiper.Item>
      </Swiper>
    </div>
  );
}

export default Sw;
